import matplotlib.pyplot as plt
import skimage.io as io
import numpy as np


jzg = io.imread('C:\\Users\\zhouh\\Downloads\\logoN.png')   # np.ndarray, [h, w, c], 值域[0, 255], RGB
plt.imshow(jzg)   #查看图片
#plt.show()

lgz = io.imread('C:\\Users\\zhouh\\Downloads\\logoC.png')   # np.ndarray, [h, w, c], 值域[0, 255], RGB
plt.imshow(lgz)
#plt.show()

print(jzg.shape)   #查看图片的大小
print(jzg.dtype)   #查看数组元素数据类型
print(lgz.shape)
print(lgz.dtype)

print([jzg.min(), jzg.max()])

pj1 = np.zeros((4722, 7083+7083, 3))   #横着拼接
pj1[:,:7083,:] = jzg.copy()   #图片jzg在左
pj1[:,7083:,:] = lgz.copy()   #图片lgz在右
print(pj1.dtype)   #查看数组元素类型

pj1=np.array(pj1, dtype=np.uint8)   #将pj1数组元素数据类型的改为"uint8"
plt.imshow(pj1)   #查看拼接情况
plt.show()

io.imsave("C:\\Users\\zhouh\\Downloads\\logoCAT.png", pj1)